import random

def st(x):
    y=ran()    
    if x==y:
        print("draw")
    elif y-x==1:
        print("u win")
    else :
        print("u lose")
    pass
def bu(x):
    y=ran()
    if x==y:
        print("draw")
    elif x-y == 2:
        print("u win")
    else :
        print("u lose")
    pass
def jd(x):
    y=ran()
    if x==y:
        print("draw")
    elif x<y:
        print("u win")
    else :
        print("u lose")
    pass
def ran():
    return random.randint(0,2)
    pass

g=input("请输入你的数字，0=拳头，1=剪刀，2=布，q=退出：")

if g == '0':
    st(int(g))

elif g == '1':
    jd(int(g))
elif g== '2':
    bu(int(g))
else :
    print("你退出游戏")
    
